package com.rhb.erp.hr.department.dao;

import org.w3c.dom.*;

import java.sql.SQLException;
import java.util.List;

import javax.xml.parsers.ParserConfigurationException;

import com.rhb.erp.hr.department.bean.*;

public interface DepartmentDAO {
	public String create(Department obj);
	public void update(Department obj);
	public void delete(Department obj);
	public Department findByPK(String pk);

	public List findByQuery(DepartmentQuery query,int start, int count);
	public int getAllCount_findByQuery(DepartmentQuery query);
	
	public Document getDepartmentXMLDoc() throws ParserConfigurationException;
	
	public String getTreeMap(String departmentPk);
	public int updateNameMap(String oldNameMap,String newNameMap) throws SQLException;
}
